package com.woniuxy.controller;

import com.woniuxy.controller.form.RulePageForm;
import com.woniuxy.service.RoleService;
import com.woniuxy.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hujianying
 * @since 2022-03-23
 */
@RestController
@RequestMapping("/role")
@Api(tags = "角色相关接口")
public class RoleController {


    @Resource
    private RoleService ruleService;

    @ApiOperation("获取所有角色")
    @GetMapping("/getAllRule")
    public Result getAllRule(RulePageForm rpf){
        return ruleService.findRuleByPage(rpf);
    }

}

